import { createApp, h } from 'vue'
// import App from './App.vue'
// console.log(App.render.toString())
// createApp(App).mount('#app')

createApp({
  data: () => ({ count: 3 }),
  render() {
    return h('div', { class: 'box' }, [
      h('h1', {}, 'hello jirengu '+ this.count ),
      h('button', { onClick: () => this.count++ }, 'Click'),
      h({
        data: () => ({ msg: 'child' }),
        render() {
          return h('h2', {}, this.msg)
        }
      })
    ])
  }
}).mount('#app')



